<template>
  <div style="height:100%;">
    <!-- swiper -->
    <swiper :options="swiperOption" :globalOptions="{}" style="height:100%;">
      <swiper-slide>Slide 1</swiper-slide>
      <swiper-slide>Slide 2</swiper-slide>
      <swiper-slide>Slide 3</swiper-slide>
      <swiper-slide>Slide 4</swiper-slide>
      <swiper-slide>Slide 5</swiper-slide>
      <swiper-slide>Slide 6</swiper-slide>
      <swiper-slide>Slide 7</swiper-slide>
      <swiper-slide>Slide 8</swiper-slide>
      <swiper-slide>Slide 9</swiper-slide>
      <swiper-slide>Slide 10</swiper-slide>
      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        swiperOption: {
          pagination: {
            el: '.swiper-pagination'
          },
          slidesPerView: 1,
          spaceBetween: 30
        }
      }
    }
  }

</script>
<style>
  .swiper-slide:nth-child(odd) {
    background: red;
  }

  .swiper-slide:nth-child(even) {
    background: yellowgreen;
  }

</style>
